<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="template.xhtml">
	<ui:define name="content">
	
		<f:metadata>  
		    <f:viewParam name="elementId" value="#{nationBean.nationId}" />  
		</f:metadata>

		<h2>Modifica nazione: "<h:outputText value="#{nationBean.nation.name}"/>"</h2>

		<h:form>
			<p:panelGrid columns="2">
				<f:facet name="header">  
		        	Modifica elemento 
		    	</f:facet>
		    	
		    	<h:outputLabel value="Nome:" />  
		    	<p:inputText value="#{nationBean.nation.name}"></p:inputText>
		    	
		    	<f:facet name="footer"> 
		    	
		    		<center>
		    			<p:button outcome="manageNations" value="Annulla" />
		    			<p:commandButton value="Salva" action="#{nationBean.updateNation}">
		    		</p:commandButton></center>
		    	
		    	</f:facet>
			
			</p:panelGrid>
			</h:form>
			<br />
			<p:messages showDetail="true" autoUpdate="true" closable="true" />

	</ui:define>
</ui:composition>
</html>